package com.example.mydownloader.config.globalConfig

import android.app.Application
import android.os.Handler
import android.os.Looper
import android.os.Message
import android.util.Log
import com.example.mydownloader.BuildConfig


/**
 * <Description> TODO
 *
 * @author Wallace
 * @Date 2021/11/19 14:15
 */
object GlobalParameter {

    lateinit var mContext: Application

    // BuildConfig.DEBUG
    val logLevel = if (BuildConfig.DEBUG) Log.VERBOSE else Log.WARN

    val gHandler by lazy(LazyThreadSafetyMode.SYNCHRONIZED) {
        object : Handler(Looper.getMainLooper()) {
            override fun handleMessage(msg: Message) {
                TODO("全局处理器未实现")
            }
        }
    }
}